package com.cuit.zuke.hotel.model.hotel;

import com.cuit.zuke.hotel.model.base.BaseMongoEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(description = "Hotel")
@Document("Hotel")
public class Hotel extends BaseMongoEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "酒店编号")
	@Indexed(unique = true) //唯一索引
	private String zkcode;

	@ApiModelProperty(value = "酒店名称")
	@Indexed //普通索引
	private String zkname;

	@ApiModelProperty(value = "酒店类型")
	private String zktype;

	@ApiModelProperty(value = "省code")
	private String provinceCode;

	@ApiModelProperty(value = "市code")
	private String cityCode;

	@ApiModelProperty(value = "区code")
	private String districtCode;

	@ApiModelProperty(value = "详情地址")
	private String address;

	@ApiModelProperty(value = "酒店logo")
	private String logoData;

	@ApiModelProperty(value = "酒店简介")
	private String intro;

	@ApiModelProperty(value = "坐车路线")
	private String route;

	@ApiModelProperty(value = "状态 0：未上线 1：已上线")
	private Integer status;

	// 房间信息
	@ApiModelProperty(value = "房间信息")
	private List<HotelRoom> hotelRoom;

}



